<script setup lang="ts">
    import CategoryNav from './components/CategoryNav.vue' //导航栏
    import CategoryList from './components/CategoryList.vue' //分类列表
    import { useRoute } from "vue-router" //路由函数

    //获得路由的信息
    const route = useRoute()
</script>

<template>

    <!--导航栏-->
    <CategoryNav :id="route.params.id"></CategoryNav>

    <!--分类列表-->
    <CategoryList :id="route.params.id"></CategoryList>

</template>

<style scoped></style>
